package net.ikenna.yadet.core.data;

public class MapCell implements Cell {
    private final Object key;
    private final Row row;
    private Object value;

    public MapCell(Object key, Object value, Row row) {
        this.key = key;
        this.value = value;
        this.row = row;
    }

    public boolean containsString() {
        return value instanceof String;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object newValue) {
        this.value = newValue;
        row.put(key, newValue);
    }
}
